package com.jack.lib.core.ext

/**
 * author : chong.huang
 * create : 2022/1/8
 * desc   :
 */
inline fun Boolean?.trues(yes: () -> Unit) {
    if (this == true) {
        yes.invoke()
    }
}

inline fun Boolean?.fake(no: () -> Unit) {
    if (this != true) {
        no.invoke()
    }
}